<!DOCTYPE html>
<html>

	<head lang="en">
		<meta charset="utf-8" />
		<title>个人信息</title>
		<link rel="stylesheet" type="text/css" href="css/public.css" />
		<link rel="stylesheet" type="text/css" href="css/mygrxx.css" />
	</head>

	<body>

		<!------------------------------Bott------------------------------>
		<div class="Bott">
			<div class="wrapper clearfix">

				<div class="you fl">
					<h2>修改密码</h2>
					<form action="#" method="get" class="remima">

						<p>
							<span>原密码：</span>
							<input id="inputpwd" type="password" />
							<input type="hidden" id="pwd" name="user_psw" class="form-control" </p>
							<p class="op">输入原密码</p>
							<p>
								<span>新密码：</span>
								<input id="inputpwd1" type="password" />
								<input type="hidden" id="pwd1" name="user_pswn" class="form-control">

							</p>
							<p class="op">6-16 个字符，需使用字母、数字或符号组合，不能使用纯数字、纯字母、纯符号</p>
							<p><span>重复新密码：</span><input id="inputpwd2" type="password" /></p>
							<p class="op">请再次输入密码</p>
							<p>
								<span>验证码：</span><input type="text" id="kaptchaImageInput" name="kaptcha" />
								<!--<img src="img/code.jpg" alt="" />-->
								<a href="javascript:reloadCode();"><img src="kaptcha.jpg" id="kaptchaImage" /></a>

							</p>
							<p class="op">按右图输入验证码，不区分大小写</p>
							<input type="submit" name="submit" value="提交" onclick="return MD5();" />
					</form>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			function reloadCode() {
				var time = new Date().getTime();
				document.getElementById("kaptchaImage").src = "kaptcha.jpg?" + time;

			}
		</script>

		<script type="text/javascript">
			function MD5() {
				var password = document.getElementById("inputpwd").value
				var password1 = document.getElementById("inputpwd1").value
				var password2 = document.getElementById("inputpwd2").value

				if(password1 == password2) {
					var hash = md5(password);
					var hash1 = md5(password1);
					document.getElementById("pwd").value = hash
					document.getElementById("pwd1").value = hash1
//					alert(hash);
//					alert(password);
//					alert(hash1);
//					alert(password1);
					return true;
				} else {
					alert("两次输入的密码不一致！");
					return false;

				}

			}
		</script>

		<script src="http://cdn.bootcss.com/blueimp-md5/1.1.0/js/md5.js"></script>
		<script src="http://cdn.bootcss.com/blueimp-md5/1.1.0/js/md5.min.js"></script>

		<script src="js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/public.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/user.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>